Skip to content

fix: use GET+POST instead of PUT for Confluence Server attach_content (#1660) - #1666

Merged
gonchik merged 1 commit into
atlassian-api:masterfrom
mrcrysta1:fix/confluence-server-attach-content
Aug 28, 2026
Merged

fix: use GET+POST instead of PUT for Confluence Server attach_content (#1660)#1666
gonchik merged 1 commit into
atlassian-api:masterfrom
mrcrysta1:fix/confluence-server-attach-content

Conversation

@mrcrysta1

Copy link
Copy Markdown
Contributor

Fixes #1660. Confluence Server does not support PUT on the child/attachment endpoint. Changed attach_content() to GET existing attachment first, then POST to create or PUT on specific attachment ID to update.

…atlassian-api#1660)

Confluence Server doesn't support PUT on the child/attachment endpoint.
This fix checks if the attachment exists first (GET), then creates (POST)
or updates (PUT on specific attachment ID) accordingly.

Fixes atlassian-api#1660
@gonchik
gonchik merged commit ce3d8e6 into atlassian-api:master Aug 28, 2026
4 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Confluence Server: attach_content() uses PUT on child/attachment, causing 405

2 participants